package cn.zhangxin.newyear.system.echarts.service.impl;

import cn.zhangxin.newyear.system.echarts.domain.Dept;
import cn.zhangxin.newyear.system.echarts.mapper.EchartsMapper;
import cn.zhangxin.newyear.system.echarts.service.IEchartsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EchartsServiceImpl implements IEchartsService {
    @Autowired
    private EchartsMapper echartsMapper;
    @Override
    public List<Dept> deptEcharts() {
        List<Dept> depts = echartsMapper.deptEcharts();
        return depts;
    }
}
